package com.niu.crm.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Student extends BaseModel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -8499750501654022895L;
	private String stuNo;
	private String stuName;
	private String gender;
	private String school;  //学校
	private String grade; 
	private String fee;
	private String timeName;  //时间段
	private String memo;  //备注
	
	private Long creatorId;
	private Date updatedAt;
	
	private StuScore stuScore;
	private List<StuParent> stuParents;
	
	
	public String getStuNo() {
		return stuNo;
	}
	public void setStuNo(String stuNo) {
		this.stuNo = stuNo;
	}
	public String getStuName() {
		return stuName;
	}
	public void setStuName(String stuName) {
		this.stuName = stuName;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getSchool() {
		return school;
	}
	public void setSchool(String school) {
		this.school = school;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	public String getFee() {
		return fee;
	}
	public void setFee(String fee) {
		this.fee = fee;
	}
	public String getTimeName() {
		return timeName;
	}
	public void setTimeName(String timeName) {
		this.timeName = timeName;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public Long getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}
	public Date getUpdatedAt() {
		return updatedAt;
	}
	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}
	public List<StuParent> getStuParents() {
		return stuParents;
	}
	public void setStuParents(List<StuParent> stuParents) {
		this.stuParents = stuParents;
	}
	public void addStuParent(StuParent stuParent) {
		if(stuParents == null)
			stuParents = new ArrayList<>();
		
		stuParents.add(stuParent);
	}
	
	public StuScore getStuScore() {
		return stuScore;
	}
	public void setStuScore(StuScore stuScore) {
		this.stuScore = stuScore;
	}
}